/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package common;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 *
 * @author HoangHai
 */
public class UserLoginInfo implements Serializable {

    private static UserLoginInfo userLoginInfo;
    private String userName;
    private String userID;
    private String userRole;
    private Timestamp loginDate;

    private UserLoginInfo() {
    }

    public static synchronized UserLoginInfo getUserLoginInfo() {
        if (userLoginInfo == null) {
            userLoginInfo = new UserLoginInfo();
        }
        return userLoginInfo;
    }

    public Timestamp getLoginDate() {
        return loginDate;
    }

    public void setLoginDate(Timestamp loginDate) {
        this.loginDate = loginDate;
    }

    public String getUserID() {
        return userID;
    }

    public void setUserID(String userID) {
        this.userID = userID;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserRole() {
        return userRole;
    }

    public void setUserRole(String userRole) {
        this.userRole = userRole;
    }
}
